package com.bstek.wind;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @Title: SecurityConfig
 * @Package: com.bstek.wind
 * @Description:
 * @Author: zxq
 * @Date: 2023/12/12 - 21:05
 */
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SecurityConfig extends WebSecurityConfigurerAdapter {
//    @Override
//    protected void configure(HttpSecurity httpSecurity) throws Exception {
//        httpSecurity
//                .authorizeRequests()
//                .antMatchers("/**")
//                .permitAll()
//                .anyRequest().authenticated()
//                .and()
//        .csrf().disable()
//        ;
//    }
}
